home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 808 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.4 KB

  1. From: moacs11!walra@relay.nl.net (Waldi Ravens)
  2. Subject: Re: [MINTOS] compiler switch (was: Re: MiNT goes UNiX, ...)
  3. Date: Fri, 14 Jan 1994 11:55:56 +0100
  4.  
  5. [ It's not just __MINT__ being a misnomer, the same is true for the
  6.   subject: headerline, which should have been 'preprocessor switch'.
  7.   Mea culpa.
  8. ]
  9.  
  10. In <9401140407.AA11824@irz403.inf.tu-dresden.de>, Michael Hohmuth writes:
  11.  
  12. > > If you want to make it possible for people to compile your code in
  13. > > such a way that it works on plain TOSFS, I'd reccommend the following:
  14. > >
  15. > > #ifdef __atarist__
  16. > > #ifndef __MINT__
  17. > > #define TOSFS
  18. > > #endif
  19. > > #endif
  20. >
  21. > This means, "use another library than the MiNT library to compile in Tosfs
  22. > compatibility", which isn't what you meant, is it?  :-)
  23. >
  24. > Instead, I'd recomment defining -DTOSFS at the compiler's command line.
  25.  
  26. Which could be joined by a TOSENV switch to indicate that we'd rather
  27. expect a TOS-style FOOPATH="U:\usr\lib\foo,U:\usr\local\lib\bar"
  28. than a Unix-style FOOPATH="/usr/lib/foo:/usr/local/lib/bar" in the
  29. environment. Other switches might be required too (suggestions?).
  30.  
  31. There might be a general switch, TOSSTYLE, to imply all other TOS*
  32. switches. Actual code would look like:
  33.  
  34. #if defined(TOSSTYLE) || defined(TOSFS)
  35. ...     /* use profile.sh instead of .profile */
  36. #endif
  37. ...
  38. #if defined(TOSSTYLE) || defined(TOSENV)
  39. ...
  40. #endif
  41.  
  42.  
  43. Regards,
  44.            Waldi  (walra%moacs11@nl.net)
  45.